package com.yzw.hello.service.business.video.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yzw.hello.model.dao.jpa.business.videoDao.VideoDao;
import com.yzw.hello.model.pojos.business.video.Video;
import com.yzw.hello.service.business.video.VideoService;

@Service
@Transactional
public class VideoServiceImpl implements VideoService {

	@Autowired
	private VideoDao videoDao;

	@Override
	public List<Video> getList() {
		// TODO Auto-generated method stub
		return (List<Video>) videoDao.findAll();
	}

	@Override
	public Video getOne(Integer id) {
		// TODO Auto-generated method stub
		return videoDao.findOne(id);
	}

}
